<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?python qx={'none':'禁用','write':'读写','read':'只读'}?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
      py:extends="'master.kid'">
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
    <title>项目管理 - TGSVN</title>
  </head>
  <body>
    <a href="addproject">增加项目</a>
    <table>
      <tr>
	<th>项目名称</th>
	<th>用户权限</th>
	<th>来宾权限</th>
	<th>项目介绍</th>
	<th>操作</th>
      </tr>
      <tr py:for="project in projects" 
	  py:attrs="class=(projects.index(project) % 2 == 0 and 'even' or 'odd')">
	<td py:content="project.name.encode('utf-8')">项目名称</td>
	<td py:content="qx[project.auth]">用户权限</td>
	<td py:content="qx[project.anon]">来宾权限</td>
	<td py:content="project.note.encode('utf-8')">项目介绍</td>
	<td><a href="${'project_%s'%project.code}">修改</a></td>
      </tr>
    </table>
  </body>
</html>
